home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
snowballs.swf
/
scripts
/
DefineSprite_78
/
frame_4
/
DoAction.as
Wrap
Text File
|
2012-01-07
|
622b
|
33 lines
y = _Y;
x = _X;
boxx = getProperty("/hands", _X);
boxy = getProperty("/hands", _Y);
if(boxx - "35" < x)
{
if(x < boxx + "35")
{
if(boxy - "30" < y)
{
if(y < boxy + "10")
{
tellTarget("/hands/box")
{
gotoAndPlay(2);
}
set("/:score",eval("/:score") + "1");
tellTarget("/hands/box/fill")
{
gotoAndStop(eval("/:score"));
}
gotoAndPlay(1);
}
}
}
}
if("430" < y)
{
gotoAndPlay(6);
}
y += eval("/:speed");
_Y = y;